package com.cddx.logistics.service;

import com.cddx.logistics.domain.dto.QueryDTO;
import com.cddx.logistics.domain.dto.UserLoginDTO;
import com.cddx.logistics.domain.dto.UserRoleDTO;
import com.cddx.logistics.domain.pojo.Role;
import com.cddx.logistics.domain.pojo.User;
import com.cddx.logistics.domain.vo.UserVO;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface UserService {

    boolean addUser(User user);

    boolean updateUser(User user);

    boolean deleteUser(Integer id);

    PageInfo<UserVO> queryPage(QueryDTO queryDTO);

    boolean addRole(UserRoleDTO userRoleDTO);

    boolean updateUserStatus(Integer id, Integer status);

    boolean deleteIds(Integer[] ids);

    List<Role> queryRole(Integer id);

    boolean deleteRole(UserRoleDTO userRoleDTO);

    User login(UserLoginDTO userLoginDTO);

    User userInfo(String account);
}
